package com.eds.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Captcha {
    private String id;          // 验证码ID
    private String code;        // 验证码内容
    private LocalDateTime expireTime;  // 过期时间
    
    public boolean isExpired() {
        return LocalDateTime.now().isAfter(expireTime);
    }
}